projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c806d99
)
(decode_mode_spec): %+ makes % for unmodified RO buffer.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 2 Jul 1994 19:41:19 +0000
(19:41 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 2 Jul 1994 19:41:19 +0000
(19:41 +0000)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index fc9a11a4cc2b178df79945f59b99f2b5ffd2dab6..88f9e9c55cdcf01c27fe9abbe1820f0ac409ed09 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-2961,8
+2961,11
@@
decode_mode_spec (w, c, maxwidth)
return "-";
case '+':
+ /* This differs from %* only for a modified read-only buffer. */
if (MODIFF > current_buffer->save_modified)
return "*";
+ if (!NILP (current_buffer->read_only))
+ return "%";
return "-";
case 's':